<?php
session_start();
/**
* @package		ReservatieComponent voor ouderavonden van Atheneum Alicebourg Lanaken.
* @copyright	Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		1.0
* @license		GNU/GPL, see LICENSE.php
**/
include ("../include/header.php");
?>

<head>
<link rel="stylesheet" href="../css/template_css.css" type="text/css"/> 
</head>
<body onLoad="document.form.username.focus()">
<div align="center"><img src="<?php echo "$logo" ; ?>" />
</div>
<p>
  <?php 

include ("../include/config.php");
require_once ("../include/db.php");
include ("../include/header.php");

if(isset($_SESSION['myusername'])){
	if ($_SESSION['admin'] == "$adminid") {
?>
</p>
<div align="center">
  <table border="0" align="center" class="moduletable-latest1">
    <tr>
      <td width="70px"><a href="user_management/users.php"><img src="../images/users.png" width="64" height="64" border="0"></a></td>
      <td ><a href="user_management/users.php">Gebruikers </a></td>
      <td width="70px"><a href="user_management/staff.php"><img src="../images/users.png" width="64" height="64" border="0"></a></td>
      <td ><a href="user_management/staff.php">Administrators </a></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><a href="vakken/opdrachten.php"><img src="../images/vakken.png" width="64" height="64" border="0"></a></td>
      <td><a href="vakken/opdrachten.php">Vakken </a></td>
      <td><a href="datum/date.php"><img src="../images/parameters.png" width="64" height="64" border="0"></a></td>
      <td><a href="datum/date.php">Datum(s) toevoegen</a></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><a href="reservaties/adres.php"><img src="../images/new_reservation.png" width="64" height="64" border="0"></a></td>
      <td><a href="reservaties/adres.php">Nieuwe reservatie </a></td>
      <td><a href="parameters/parameters.php"><img src="../images/parameters.png" width="64" height="64" border="0"></a></td>
      <td><p><a href="parameters/parameters.php">Parameters</a></p>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><a href="reservaties/bekijk_reservatie.php"><img src="../images/view_reservations.png" width="64" height="64" border="0"></a></td>
      <td><a href="reservaties/bekijk_reservatie.php">Bekijk reservaties </a></td>
      <td><a href="../login/logout.php"><img src="../images/install.png" width="64" height="64" border="0"></a></td>
      <td><a href="../login/logout.php">Afmelden</a></td>
    </tr>
  </table>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p> 
  <?php 
	}}
	else{

include ("../include/header.php");

?>
<link rel="stylesheet" type="text/css" href="../css/login.css" />
<div align="center">
<form id="login-form" method='POST' action='../login/login_check_admin.php'>
 Ouderavond Administratie <br /><br />
  <fieldset>
  <legend></legend>
  <label for="username">Gebruikersnaam</label>
  <input name='username'>
  <div class="clear"></div>
  <label for="passwd">Wachtwoord</label>
  <input name='passwd' type='password'>
  <div class="clear"></div>
  <br />
  <input type="submit" style="margin: -20px 0 0 287px;" class="button" name="commit" value="Log in"/>	
		</fieldset>
  <!--<input type='submit' name='button' id='button' value='Login'>
  
  <table class='moduletable-latest'><tr><td>
Naam:</td>
<td> <input name='username'><br></td></tr>
<tr>
<td>Wachtwoord:</td>
<td><input name='passwd' type='password'></td>
</tr>
<tr>
<td>
<input type='submit' name='button' id='button' value='Login'>
</td>
</tr>
</table>
-->

</form>
<?php 
}
?>
</div>
</p>
</body>